<?php
namespace app\model;
use app\BaseModel;
use think\model\concern\SoftDelete;

class Category extends BaseModel
{

    use SoftDelete;
    protected $deleteTime = 'delete_time';
    protected $defaultSoftDelete = '0000-00-00 00:00:00';
//    protected $append = ['date_time','ago_time'];
    protected $hidden = ['update_time','delete_time','sort','status','level','parent_id'];


    public function getSonListNameAttr($value,$data)
    {
        $status = [1=>'二级列表',2=>'三级列表',3=>'四级列表',4=>'五级列表',5=>'六级列表'];
        return $status[$data['level']];
    }







}